from enum import IntEnum


class ModbusFunctionCode(IntEnum):
    READ_COIL_REGISTERS = 1
    READ_DISCRETE_INPUT_REGISTERS = 2
    READ_HOLDING_REGISTERS = 3
    READ_INPUT_REGISTERS = 4
    WRITE_COIL_REGISTERS = 5
    WRITE_HOLDING_REGISTERS = 6
    WRITE_MULTIPLE_COILS = 15
    WRITE_MULTIPLE_REGISTERS = 16
